package Week1.J0417;

import java.util.Scanner;

public class Abbreviation {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine().toUpperCase();
        String[] array = str.split(" ");
        System.out.println(abbr(array));
    }

    private static String abbr(String[] array) {

        StringBuilder sbr = new StringBuilder();
        for (String s : array) {
            sbr.append(s.charAt(0));
        }
        return sbr.toString();
    }
}
